﻿using System.Web.Mvc;
using CharacterCreation.Business.Repositories;

namespace CharacterCreation.Web.Controllers
{
    public class DataController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult ResetData()
        {
            new GlobalRepository();
            GlobalRepository.DropTables();
            GlobalRepository.Initialize();

            return RedirectToAction("Index", "Home");
        }

    }
}
